package unq_ui.tp_robots_web_wicket.tools;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

@SuppressWarnings({ "serial", "rawtypes" })
public class LinkVolver extends Link {

	private WebPage paginaRedireccion;
	
	public LinkVolver(String id, WebPage pagePadre, WebPage paginaRedireccion) {
		super(id);
		pagePadre.add(this);
		this.paginaRedireccion= paginaRedireccion;
	}

	@Override
	public void onClick() {
		setResponsePage(this.paginaRedireccion);
	}

}
